package com.example.doma.service;


import com.example.doma.mapper.userMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Service
public class userService {

    @Autowired
    private userMapper use;

  public  boolean istrue_password(String name,String pass)
  {
      System.out.println(name);
      System.out.println(use.getpassword(name));
      if(pass!=null&&pass.equals(use.getpassword(name)))
      {
          return true;
      }
      else
          return false;
  }

}
